package com.scy.pojo;

public class DistributeLocker {

    private int port = 9886;

    public DistributeLocker(String port) {
        try {
            System.out.println("DistributeLocker的有参构造方法执行了");
            this.port = Integer.valueOf(port);
        } catch (NumberFormatException e) {
            System.out.println("端口不合法");
        }
    }


    public void init() throws Exception {
        System.out.println("DistributeLocker类的init方法执行了----this.port="+this.port);
    }
}
